home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / gui / bgui11b.lha / include / libraries / bgui.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-06  |  50.0 KB  |  1,225 lines

  1. #ifndef LIBRARIES_BGUI_H
  2. #define LIBRARIES_BGUI_H
  3. /*
  4. **      $VER: libraries/bgui.h 38.12 (3.1.95)
  5. **      C header for the bgui.library.
  6. **
  7. **      bgui.library structures and constants.
  8. **
  9. **      (C) Copyright 1993-1995 Jaba Development.
  10. **      (C) Copyright 1993-1995 Jan van den Baard.
  11. **      All Rights Reserved.
  12. **/
  13.  
  14. #ifndef EXEC_TYPES_H
  15. #include <exec/types.h>
  16. #endif /* EXEC_TYPES_H */
  17.  
  18. #ifndef INTUITION_CLASSES_H
  19. #include <intuition/classes.h>
  20. #endif /* INTUITION_CLASSES_H */
  21.  
  22. #ifndef INTUITION_CLASSUSR_H
  23. #include <intuition/classusr.h>
  24. #endif /* INTUITION_CLASSUSR_H */
  25.  
  26. #ifndef INTUITION_IMAGECLASS_H
  27. #include <intuition/imageclass.h>
  28. #endif /* INTUITION_IMAGECLASS_H */
  29.  
  30. #ifndef INTUITION_GADGETCLASS_H
  31. #include <intuition/gadgetclass.h>
  32. #endif /* INTUITION_GADGETCLASS_H */
  33.  
  34. #ifndef INTUITION_CGHOOKS_H
  35. #include <intuition/cghooks.h>
  36. #endif /* INTUITION_CGHOOKS_H */
  37.  
  38. #ifndef LIBRARIES_COMMODITIES_H
  39. #include <libraries/commodities.h>
  40. #endif /* LIBRARIES_COMMODITIES_H */
  41.  
  42. #ifndef LIBRARIES_GADTOOLS_H
  43. #include <libraries/gadtools.h>
  44. #endif /* LIBRARIES_GADTOOLS_H */
  45.  
  46. /*****************************************************************************
  47.  *
  48.  *      The attribute definitions in this header are all followed by
  49.  *      a small comment. This comment can contain the following things:
  50.  *
  51.  *      I        - Attribute can be set with OM_NEW
  52.  *      S        - Attribute can be set with OM_SET
  53.  *      G        - Attribute can be read with OM_GET
  54.  *      N        - Setting this attribute triggers a notification.
  55.  *      U        - Attribute can be set with OM_UPDATE.
  56.  *      PRIVATE! - Like it says: Private. Do not use this attribute.
  57.  */
  58.  
  59. /*****************************************************************************
  60.  *
  61.  *      Miscellanious library definitions.
  62.  */
  63. #define BGUINAME                        "bgui.library"
  64. #define BGUIVERSION                     37
  65.  
  66. /*****************************************************************************
  67.  *
  68.  *      BGUI_GetClassPtr() and BGUI_NewObjectA() class ID's.
  69.  */
  70. #define BGUI_LABEL_IMAGE                (0L)
  71. #define BGUI_FRAME_IMAGE                (1L)
  72. #define BGUI_VECTOR_IMAGE               (2L)
  73. /* 3 through 10 reserved. */
  74. #define BGUI_BASE_GADGET                (11L)
  75. #define BGUI_GROUP_GADGET               (12L)
  76. #define BGUI_BUTTON_GADGET              (13L)
  77. #define BGUI_CYCLE_GADGET               (14L)
  78. #define BGUI_CHECKBOX_GADGET            (15L)
  79. #define BGUI_INFO_GADGET                (16L)
  80. #define BGUI_STRING_GADGET              (17L)
  81. #define BGUI_PROP_GADGET                (18L)
  82. #define BGUI_INDICATOR_GADGET           (19L)
  83.  
  84. /* 20 is reserved. */
  85.  
  86. #define BGUI_PROGRESS_GADGET            (21L)
  87. #define BGUI_SLIDER_GADGET              (22L)
  88. #define BGUI_LISTVIEW_GADGET            (23L)
  89. #define BGUI_MX_GADGET                  (24L)
  90. #define BGUI_PAGE_GADGET                (25L)
  91. #define BGUI_EXTERNAL_GADGET            (26L)
  92. #define BGUI_SEPERATOR_GADGET           (27L)
  93.  
  94. /* 27 through 39 reserved. */
  95. #define BGUI_WINDOW_OBJECT              (40L)
  96. #define BGUI_FILEREQ_OBJECT             (41L)
  97. #define BGUI_COMMODITY_OBJECT           (42L)
  98.  
  99. /*****************************************************************************
  100.  *
  101.  *      BGUI requester definitions.
  102.  */
  103. struct bguiRequest {
  104.         ULONG            br_Flags;              /* See below.               */
  105.         STRPTR           br_Title;              /* Requester title.         */
  106.         STRPTR           br_GadgetFormat;       /* Gadget labels.           */
  107.         STRPTR           br_TextFormat;         /* Body text format.        */
  108.         UWORD            br_ReqPos;             /* Requester position.      */
  109.         struct TextAttr *br_TextAttr;           /* Requester font.          */
  110.         UBYTE            br_Underscore;         /* Underscore indicator.    */
  111.         UBYTE            br_Reserved0[ 3 ];     /* Set to 0!                */
  112.         struct Screen   *br_Screen;             /* Optional screen pointer. */
  113.         ULONG            br_Reserved1[ 4 ];     /* Set to 0!                */
  114. };
  115.  
  116. #define BREQF_CENTERWINDOW      (1<<0) /* Center requester on the window.   */
  117. #define BREQF_LOCKWINDOW        (1<<1) /* Lock the parent window.           */
  118. #define BREQF_NO_PATTERN        (1<<2) /* Don't use back-fill pattern.      */
  119. #define BREQF_XEN_BUTTONS       (1<<3) /* Use XEN style buttons.            */
  120. #define BREQF_AUTO_ASPECT       (1<<4) /* Aspect-ratio dependant look.      */
  121.  
  122. /*****************************************************************************
  123.  *
  124.  *      Tag and method bases.
  125.  */
  126. #define BGUI_TB                         (TAG_USER+0xF0000)
  127. #define BGUI_MB                         (0xF0000)
  128.  
  129. /*****************************************************************************
  130.  *
  131.  *      "frameclass" - BOOPSI framing image.
  132.  */
  133. #define FRM_Type                        (BGUI_TB+1)     /* ISG-- */
  134. #define FRM_CustomHook                  (BGUI_TB+2)     /* ISG-- */
  135. #define FRM_BackFillHook                (BGUI_TB+3)     /* ISG-- */
  136. #define FRM_Title                       (BGUI_TB+4)     /* ISG-- */
  137. #define FRM_TextAttr                    (BGUI_TB+5)     /* ISG-- */
  138. #define FRM_Flags                       (BGUI_TB+6)     /* ISG-- */
  139. #define FRM_FrameWidth                  (BGUI_TB+7)     /* --G-- */
  140. #define FRM_FrameHeight                 (BGUI_TB+8)     /* --G-- */
  141. #define FRM_BackFill                    (BGUI_TB+9)     /* ISG-- */
  142. #define FRM_EdgesOnly                   (BGUI_TB+10)    /* ISG-- */
  143. #define FRM_Recessed                    (BGUI_TB+11)    /* ISG-- */
  144. #define FRM_CenterTitle                 (BGUI_TB+12)    /* ISG-- */
  145. #define FRM_HighlightTitle              (BGUI_TB+13)    /* ISG-- */
  146. #define FRM_ThinFrame                   (BGUI_TB+14)    /* ISG-- */
  147.  
  148. /* BGUI_TB+15 through BGUI_TB+80 reserved */
  149.  
  150. /* Back fill types */
  151. #define STANDARD_FILL                   (0L)
  152. #define SHINE_RASTER                    (1L)
  153. #define SHADOW_RASTER                   (2L)
  154. #define SHINE_SHADOW_RASTER             (3L)
  155. #define FILL_RASTER                     (4L)
  156. #define SHINE_FILL_RASTER               (5L)
  157. #define SHADOW_FILL_RASTER              (6L)
  158. #define SHINE_BLOCK                     (7L)
  159. #define SHADOW_BLOCK                    (8L)
  160.  
  161. /* Flags */
  162. #define FRF_EDGES_ONLY          (1<<0)
  163. #define FRF_RECESSED            (1<<1)
  164. #define FRF_CENTER_TITLE        (1<<2)
  165. #define FRF_HIGHLIGHT_TITLE     (1<<3)
  166. #define FRF_THIN_FRAME          (1<<4)
  167.  
  168. /* Frame types */
  169. #define FRTYPE_CUSTOM           (0L)
  170. #define FRTYPE_BUTTON           (1L)
  171. #define FRTYPE_RIDGE            (2L)
  172. #define FRTYPE_DROPBOX          (3L)
  173. #define FRTYPE_NEXT             (4L)
  174. #define FRTYPE_RADIOBUTTON      (5L)
  175. #define FRTYPE_XEN_BUTTON       (6L)
  176.  
  177. /*
  178.  *      FRM_RENDER:
  179.  *
  180.  *      The message packet sent to both the FRM_CustomHook
  181.  *      and FRM_BackFillHook routines. Note that this
  182.  *      structure is READ-ONLY!
  183.  *
  184.  *      The hook is called as follows:
  185.  *
  186.  *              rc = hookFunc( REG(A0) struct Hook         *hook,
  187.  *                             REG(A2) Object              *image_object,
  188.  *                             REG(A1) struct FrameDrawMsg *fdraw );
  189.  */
  190. #define FRM_RENDER              (1L) /* Render yourself           */
  191.  
  192. struct FrameDrawMsg {
  193.         ULONG             fdm_MethodID;   /* FRM_RENDER                   */
  194.         struct RastPort  *fdm_RPort;      /* RastPort ready for rendering */
  195.         struct DrawInfo  *fdm_DrawInfo;   /* All you need to render       */
  196.         struct Rectangle *fdm_Bounds;     /* Rendering bounds.            */
  197.         UWORD             fdm_State;      /* See "intuition/imageclass.h" */
  198. };
  199.  
  200. /*
  201.  *      FRM_THICKNESS:
  202.  *
  203.  *      The message packet sent to the FRM_Custom hook.
  204.  *
  205.  *      The hook is called as follows:
  206.  *
  207.  *      rc = hookFunc( REG(A0) struct Hook              *hook,
  208.  *                     REG(A2) Object                   *image_object,
  209.  *                     REG(A1) struct ThicknessMsg      *thick );
  210.  */
  211. #define FRM_THICKNESS           (2L) /* Give the frame thickness. */
  212.  
  213. struct ThicknessMsg {
  214.         ULONG            tm_MethodID;     /* FRM_THICKNESS                */
  215.         struct {
  216.                 UBYTE   *Horizontal;      /* Storage for horizontal       */
  217.                 UBYTE   *Vertical;        /* Storage for vertical         */
  218.         }                tm_Thickness;
  219.         BOOL             tm_Thin;         /* Added in V38!                */
  220. };
  221.  
  222. /* Possible hook return codes. */
  223. #define FRC_OK                  (0L) /* OK            */
  224. #define FRC_UNKNOWN             (1L) /* Unknow method */
  225.  
  226. /*****************************************************************************
  227.  *
  228.  *      "labelclass" - BOOPSI labeling image.
  229.  */
  230. #define LAB_TextAttr                    (BGUI_TB+81)    /* ISG-- */
  231. #define LAB_Style                       (BGUI_TB+82)    /* ISG-- */
  232. #define LAB_Underscore                  (BGUI_TB+83)    /* ISG-- */
  233. #define LAB_Place                       (BGUI_TB+84)    /* ISG-- */
  234. #define LAB_Label                       (BGUI_TB+85)    /* ISG-- */
  235. #define LAB_Flags                       (BGUI_TB+86)    /* ISG-- */
  236. #define LAB_Highlight                   (BGUI_TB+87)    /* ISG-- */
  237. #define LAB_HighUScore                  (BGUI_TB+88)    /* ISG-- */
  238.  
  239. /* BGUI_TB+89 through BGUI_TB+160 reserved */
  240.  
  241. /* Flags */
  242. #define LABF_HIGHLIGHT          (1<<0) /* Highlight label        */
  243. #define LABF_HIGH_USCORE        (1<<1) /* Highlight underscoring */
  244.  
  245. /* Label placement */
  246. #define PLACE_IN                (0L)
  247. #define PLACE_LEFT              (1L)
  248. #define PLACE_RIGHT             (2L)
  249. #define PLACE_ABOVE             (3L)
  250. #define PLACE_BELOW             (4L)
  251.  
  252. /* New methods */
  253. /*
  254.  *      The IM_EXTENT method is used to find out how many
  255.  *      pixels the label extents the releative hitbox in
  256.  *      either direction. Normally this method is called
  257.  *      by the baseclass.
  258.  */
  259. #define IM_EXTENT                       (BGUI_MB+1)
  260.  
  261. struct impExtent {
  262.         ULONG                   MethodID;       /* IM_EXTENT                */
  263.         struct RastPort        *impe_RPort;     /* RastPort                 */
  264.         struct IBox            *impe_Extent;    /* Storage for extentions.  */
  265.         struct {
  266.                 UWORD          *Width;          /* Storage width in pixels  */
  267.                 UWORD          *Height;         /* Storage height in pixels */
  268.         }                       impe_LabelSize;
  269.         UWORD                   impe_Flags;     /* See below.               */
  270. };
  271.  
  272. #define EXTF_MAXIMUM            (1<<0) /* Request maximum extensions. */
  273.  
  274. /* BGUI_MB+2 through BGUI_MB+40 reserved */
  275.  
  276. /*****************************************************************************
  277.  *
  278.  *      "vectorclass" - BOOPSI scalable vector image.
  279.  *
  280.  *      Based on an idea found in the ObjectiveGadTools.library
  281.  *      by Davide Massarenti.
  282.  */
  283. #define VIT_VectorArray                 (BGUI_TB+161)   /* ISG-- */
  284. #define VIT_BuiltIn                     (BGUI_TB+162)   /* ISG-- */
  285. #define VIT_Pen                         (BGUI_TB+163)   /* ISG-- */
  286. #define VIT_DriPen                      (BGUI_TB+164)   /* ISG-- */
  287.  
  288. /* BGUI_TB+165 through BGUI_TB+240 reserved. */
  289.  
  290. /*
  291.  *      Command structure which can contain
  292.  *      coordinates, data and command flags.
  293.  */
  294. struct VectorItem {
  295.         WORD                    vi_x;           /* X coordinate or data */
  296.         WORD                    vi_y;           /* Y coordinate         */
  297.         ULONG                   vi_Flags;       /* See below            */
  298. };
  299.  
  300. /* Flags */
  301. #define VIF_MOVE                (1<<0)  /* Move to vc_x, vc_y               */
  302. #define VIF_DRAW                (1<<1)  /* Draw to vc_x, vc_y               */
  303. #define VIF_AREASTART           (1<<2)  /* Start AreaFill at vc_x, vc_y     */
  304. #define VIF_AREAEND             (1<<3)  /* End AreaFill at vc_x, vc_y       */
  305. #define VIF_XRELRIGHT           (1<<4)  /* vc_x relative to right edge      */
  306. #define VIF_YRELBOTTOM          (1<<5)  /* vc_y relative to bottom edge     */
  307. #define VIF_SHADOWPEN           (1<<6)  /* switch to SHADOWPEN, Move/Draw   */
  308. #define VIF_SHINEPEN            (1<<7)  /* switch to SHINEPEN, Move/Draw    */
  309. #define VIF_FILLPEN             (1<<8)  /* switch to FILLPEN, Move/Draw     */
  310. #define VIF_TEXTPEN             (1<<9)  /* switch to TEXTPEN, Move/Draw     */
  311. #define VIF_COLOR               (1<<10) /* switch to color in vc_x          */
  312. #define VIF_LASTITEM            (1<<11) /* last element of the element list */
  313. #define VIF_SCALE               (1<<12) /* X & Y are design width & height  */
  314. #define VIF_DRIPEN              (1<<13) /* switch to dripen vc_x            */
  315. #define VIF_AOLPEN              (1<<14) /* set area outline pen vc_x        */
  316. #define VIF_AOLDRIPEN           (1<<15) /* set area outline dripen vc_x     */
  317. #define VIF_ENDOPEN             (1<<16) /* end area outline pen             */
  318.  
  319. /* Built-in images. */
  320. #define BUILTIN_GETPATH         (1L)
  321. #define BUILTIN_GETFILE         (2L)
  322. #define BUILTIN_CHECKMARK       (3L)
  323. #define BUILTIN_POPUP           (4L)
  324. #define BUILTIN_ARROW_UP        (5L)
  325. #define BUILTIN_ARROW_DOWN      (6L)
  326. #define BUILTIN_ARROW_LEFT      (7L)
  327. #define BUILTIN_ARROW_RIGHT     (8L)
  328.  
  329. /* Design width and heights of the built-in images. */
  330. #define GETPATH_WIDTH           20
  331. #define GETPATH_HEIGHT          14
  332. #define GETFILE_WIDTH           20
  333. #define GETFILE_HEIGHT          14
  334. #define CHECKMARK_WIDTH         26
  335. #define CHECKMARK_HEIGHT        11
  336. #define POPUP_WIDTH             15
  337. #define POPUP_HEIGHT            13
  338. #define ARROW_UP_WIDTH          16
  339. #define ARROW_UP_HEIGHT         9
  340. #define ARROW_DOWN_WIDTH        16
  341. #define ARROW_DOWN_HEIGHT       9
  342. #define ARROW_LEFT_WIDTH        10
  343. #define ARROW_LEFT_HEIGHT       12
  344. #define ARROW_RIGHT_WIDTH       10
  345. #define ARROW_RIGHT_HEIGHT      12
  346.  
  347. /*****************************************************************************
  348.  *
  349.  *      "baseclass" - BOOPSI base gadget.
  350.  *
  351.  *      This is a very important BGUI gadget class. All other gadget classes
  352.  *      are sub-classed from this class. It will handle stuff like online
  353.  *      help, notification, labels and frames etc. If you want to write a
  354.  *      gadget class for BGUI be sure to subclass it from this class. That
  355.  *      way your class will automatically inherit the same features.
  356.  */
  357. #define BT_HelpFile                     (BGUI_TB+241)   /* IS--- */
  358. #define BT_HelpNode                     (BGUI_TB+242)   /* IS--- */
  359. #define BT_HelpLine                     (BGUI_TB+243)   /* IS--- */
  360. #define BT_Inhibit                      (BGUI_TB+244)   /* PRIVATE! */
  361. #define BT_HitBox                       (BGUI_TB+245)   /* --G-- */
  362. #define BT_LabelObject                  (BGUI_TB+246)   /* -SG-- */
  363. #define BT_FrameObject                  (BGUI_TB+247)   /* -SG-- */
  364. #define BT_TextAttr                     (BGUI_TB+248)   /* -S--- */
  365. #define BT_NoRecessed                   (BGUI_TB+249)   /* -S--- */
  366. #define BT_LabelClick                   (BGUI_TB+250)   /* IS--- */
  367. #define BT_HelpText                     (BGUI_TB+251)   /* IS--- */
  368.  
  369. /* BGUI_TB+252 through BGUI_TB+320 reserved. */
  370.  
  371. /* New methods */
  372. #define BASE_ADDMAP                     (BGUI_MB+41)
  373.  
  374. /* Add an object to the maplist notification list. */
  375. struct bmAddMap {
  376.         ULONG                   MethodID;
  377.         Object                 *bam_Object;
  378.         struct TagItem         *bam_MapList;
  379. };
  380.  
  381. #define BASE_ADDCONDITIONAL             (BGUI_MB+42)
  382.  
  383. /* Add an object to the conditional notification list. */
  384. struct bmAddConditional {
  385.         ULONG                   MethodID;
  386.         Object                 *bac_Object;
  387.         struct TagItem          bac_Condition;
  388.         struct TagItem          bac_TRUE;
  389.         struct TagItem          bac_FALSE;
  390. };
  391.  
  392. #define BASE_ADDMETHOD                  (BGUI_MB+43)
  393.  
  394. /* Add an object to the method notification list. */
  395. struct bmAddMethod {
  396.         ULONG                   MethodID;
  397.         Object                 *bam_Object;
  398.         ULONG                   bam_Flags;
  399.         ULONG                   bam_Size;
  400.         ULONG                   bam_MethodID;
  401. };
  402.  
  403. #define BAMF_NO_GINFO           (1<<0)  /* Do not send GadgetInfo. */
  404. #define BAMF_NO_INTERIM         (1<<1)  /* Skip interim messages.  */
  405.  
  406. #define BASE_REMMAP                     (BGUI_MB+44)
  407. #define BASE_REMCONDITIONAL             (BGUI_MB+45)
  408. #define BASE_REMMETHOD                  (BGUI_MB+46)
  409.  
  410. /* Remove an object from a notification list. */
  411. struct bmRemove {
  412.         ULONG                   MethodID;
  413.         Object                 *bar_Object;
  414. };
  415.  
  416. #define BASE_SHOWHELP                   (BGUI_MB+47)
  417.  
  418. /* Show attached online-help. */
  419. struct bmShowHelp {
  420.         ULONG                   MethodID;
  421.         struct Window          *bsh_Window;
  422.         struct Requester       *bsh_Requester;
  423.         struct {
  424.                 WORD            X;
  425.                 WORD            Y;
  426.         }                       bsh_Mouse;
  427. };
  428.  
  429. #define BMHELP_OK               (0L)    /* OK, no problems.           */
  430. #define BMHELP_NOT_ME           (1L)    /* Mouse not over the object. */
  431. #define BMHELP_FAILURE          (2L)    /* Showing failed.            */
  432.  
  433. /*
  434.  *      The following three methods are used internally to
  435.  *      perform infinite-loop checking. Do not use them.
  436.  */
  437. #define BASE_SETLOOP                    (BGUI_MB+48)
  438. #define BASE_CLEARLOOP                  (BGUI_MB+49)
  439. #define BASE_CHECKLOOP                  (BGUI_MB+50)
  440.  
  441. /* PRIVATE! Hands off! */
  442. #define BASE_LEFTEXT                    (BGUI_MB+51)
  443.  
  444. struct bmLeftExt {
  445.         ULONG                   MethodID;
  446.         struct RastPort        *bmle_RPort;
  447.         UWORD                  *bmle_Extention;
  448. };
  449.  
  450. #define BASE_ADDHOOK                    (BGUI_MB+52)
  451.  
  452. /* Add a hook to the hook-notification list. */
  453. struct bmAddHook {
  454.         ULONG                   MethodID;
  455.         struct Hook            *bah_Hook;
  456. };
  457.  
  458. /* Remove a hook from the hook-notification list. */
  459. #define BASE_REMHOOK                    (BGUI_MB+53)
  460.  
  461. /* BGUI_MB+54 through BGUI_MB+80 reserved. */
  462.  
  463. /*****************************************************************************
  464.  *
  465.  *      "groupclass" - BOOPSI group gadget.
  466.  *
  467.  *      This class is the actual bgui.library layout engine. It will layout
  468.  *      all members in a specific area. Two group types are available,
  469.  *      horizontal and vertical groups.
  470.  */
  471. #define GROUP_Style                     (BGUI_TB+321)   /* I---- */
  472. #define GROUP_Spacing                   (BGUI_TB+322)   /* I---- */
  473. #define GROUP_HorizOffset               (BGUI_TB+323)   /* I---- */
  474. #define GROUP_VertOffset                (BGUI_TB+324)   /* I---- */
  475. #define GROUP_LeftOffset                (BGUI_TB+325)   /* I---- */
  476. #define GROUP_TopOffset                 (BGUI_TB+326)   /* I---- */
  477. #define GROUP_RightOffset               (BGUI_TB+327)   /* I---- */
  478. #define GROUP_BottomOffset              (BGUI_TB+328)   /* I---- */
  479. #define GROUP_Member                    (BGUI_TB+329)   /* I---- */
  480. #define GROUP_SpaceObject               (BGUI_TB+330)   /* I---- */
  481. #define GROUP_BackFill                  (BGUI_TB+331)   /* I---- */
  482. #define GROUP_EqualWidth                (BGUI_TB+332)   /* I---- */
  483. #define GROUP_EqualHeight               (BGUI_TB+333)   /* I---- */
  484. #define GROUP_Inverted                  (BGUI_TB+334)   /* I---- */
  485.  
  486. /* BGUI_TB+335 through BGUI_TB+380 reserved. */
  487.  
  488. /* Object layout attributes. */
  489. #define LGO_FixWidth                    (BGUI_TB+381)
  490. #define LGO_FixHeight                   (BGUI_TB+382)
  491. #define LGO_Weight                      (BGUI_TB+383)
  492. #define LGO_FixMinWidth                 (BGUI_TB+384)
  493. #define LGO_FixMinHeight                (BGUI_TB+385)
  494. #define LGO_Align                       (BGUI_TB+386)
  495. #define LGO_NoAlign                     (BGUI_TB+387)                /* V38 */
  496.  
  497. /* BGUI_TB+388 through BGUI_TB+400 reserved. */
  498.  
  499. /* Default object weight. */
  500. #define DEFAULT_WEIGHT                  (50L)
  501.  
  502. /* Group styles. */
  503. #define GRSTYLE_HORIZONTAL              (0L)
  504. #define GRSTYLE_VERTICAL                (1L)
  505.  
  506. /* New methods. */
  507. #define GRM_ADDMEMBER                   (BGUI_MB+81)
  508.  
  509. /* Add a member to the group. */
  510. struct grmAddMember {
  511.         ULONG                   MethodID;       /* GRM_ADDMEMBER            */
  512.         Object                 *grma_Member;    /* Object to add.           */
  513.         ULONG                   grma_Attr;      /* First of LGO attributes. */
  514. };
  515.  
  516. #define GRM_REMMEMBER                   (BGUI_MB+82)
  517.  
  518. /* Remove a member from the group. */
  519. struct grmRemMember {
  520.         ULONG                   MethodID;       /* GRM_REMMEMBER            */
  521.         Object                 *grmr_Member;    /* Object to remove.        */
  522. };
  523.  
  524. #define GRM_DIMENSIONS                  (BGUI_MB+83)
  525.  
  526. /* Ask an object it's dimensions information. */
  527. struct grmDimensions {
  528.         ULONG                   MethodID;       /* GRM_DIMENSIONS           */
  529.         struct GadgetInfo      *grmd_GInfo;     /* Can be NULL!             */
  530.         struct RastPort        *grmd_RPort;     /* Ready for calculations.  */
  531.         struct {
  532.                 UWORD          *Width;
  533.                 UWORD          *Height;
  534.         }                       grmd_MinSize;   /* Storage for dimensions.  */
  535.         ULONG                   grmd_Flags;     /* See below.               */
  536. };
  537.  
  538. /* Flags */
  539. #define GDIMF_NO_FRAME          (1<<0)  /* Don't take frame width/height
  540.                                            into consideration.              */
  541.  
  542. #define GRM_ADDSPACEMEMBER              (BGUI_MB+84)
  543.  
  544. /* Add a weight controlled spacing member. */
  545. struct grmAddSpaceMember {
  546.         ULONG                   MethodID;       /* GRM_ADDSPACEMEMBER       */
  547.         ULONG                   grms_Weight;    /* Object weight.           */
  548. };
  549.  
  550. #define GRM_INSERTMEMBER                (BGUI_MB+85)
  551.  
  552. /* Insert a member in the group. */
  553. struct grmInsertMember {
  554.         ULONG                   MethodID;       /* GRM_INSERTMEMBER         */
  555.         Object                 *grmi_Member;    /* Member to insert.        */
  556.         Object                 *grmi_Pred;      /* Insert after this member */
  557.         ULONG                   grmi_Attr;      /* First of LGO attributes. */
  558. };
  559.  
  560. /* BGUI_MB+86 through BGUI_MB+120 reserved. */
  561.  
  562. /*****************************************************************************
  563.  *
  564.  *      "buttonclass" - BOOPSI button gadget.
  565.  *
  566.  *      GadTools style button gadget.
  567.  *
  568.  *      GA_Selected has been made gettable (OM_GET) for toggle-select
  569.  *      buttons. (ISGNU)
  570.  */
  571. #define BUTTON_ScaleMinWidth            (BGUI_TB+401)   /* PRIVATE! */
  572. #define BUTTON_ScaleMinHeight           (BGUI_TB+402)   /* PRIVATE! */
  573. #define BUTTON_Image                    (BGUI_TB+403)   /* I---- */
  574. #define BUTTON_SelectedImage            (BGUI_TB+404)   /* I---- */
  575.  
  576. /* BGUI_TB+405 through BGUI_TB+480 reserved. */
  577. /* BGUI_MB+121 through BGUI_MB+160 reserved. */
  578.  
  579. /*****************************************************************************
  580.  *
  581.  *      "checkboxclass" - BOOPSI checkbox gadget.
  582.  *
  583.  *      GadTools style checkbox gadget.
  584.  *
  585.  *      GA_Selected has been made gettable (OM_GET). (ISGNU)
  586.  */
  587.  
  588. /* BGUI_TB+481 through BGUI_TB+560 reserved. */
  589. /* BGUI_MB+161 through BGUI_MB+200 reserved. */
  590.  
  591. /*****************************************************************************
  592.  *
  593.  *      "cycleclass" - BOOPSI cycle gadget.
  594.  *
  595.  *      GadTools style cycle gadget.
  596.  */
  597. #define CYC_Labels                      (BGUI_TB+561)   /* I---- */
  598. #define CYC_Active                      (BGUI_TB+562)   /* ISGNU */
  599. #define CYC_Popup                       (BGUI_TB+563)   /* I---- */
  600.  
  601. /* BGUI_TB+564 through BGUI_TB+640 reserved. */
  602. /* BGUI_MB+201 through BGUI_MB+240 reserved. */
  603.  
  604. /*****************************************************************************
  605.  *
  606.  *      "infoclass" - BOOPSI information gadget.
  607.  *
  608.  *      Text gadget which supports different colors, text styles and
  609.  *      text positioning.
  610.  */
  611. #define INFO_TextFormat                 (BGUI_TB+641)   /* IS--U */
  612. #define INFO_Args                       (BGUI_TB+642)   /* IS--U */
  613. #define INFO_MinLines                   (BGUI_TB+643)   /* I---- */
  614. #define INFO_FixTextWidth               (BGUI_TB+644)   /* I---- */
  615. #define INFO_HorizOffset                (BGUI_TB+645)   /* I---- */
  616. #define INFO_VertOffset                 (BGUI_TB+646)   /* I---- */
  617.  
  618. /* Command sequences. */
  619. #define ISEQ_B                          "\33b"  /* Bold          */
  620. #define ISEQ_I                          "\33i"  /* Italics       */
  621. #define ISEQ_U                          "\33u"  /* Underlined    */
  622. #define ISEQ_N                          "\33n"  /* Normal        */
  623. #define ISEQ_C                          "\33c"  /* Centered      */
  624. #define ISEQ_R                          "\33r"  /* Right         */
  625. #define ISEQ_L                          "\33l"  /* Left          */
  626. #define ISEQ_TEXT                       "\33d2" /* TEXTPEN       */
  627. #define ISEQ_SHINE                      "\33d3" /* SHINEPEN      */
  628. #define ISEQ_SHADOW                     "\33d4" /* SHADOWPEN     */
  629. #define ISEQ_FILL                       "\33d5" /* FILLPEN       */
  630. #define ISEQ_FILLTEXT                   "\33d6" /* FILLTEXTPEN   */
  631. #define ISEQ_HIGHLIGHT                  "\33d8" /* HIGHLIGHTPEN  */
  632.  
  633. /* BGUI_TB+645 through BGUI_TB+720 reserved. */
  634. /* BGUI_MB+241 through BGUI_MB+280 reserved. */
  635.  
  636. /*****************************************************************************
  637.  *
  638.  *      "listviewclass" - BOOPSI listview gadget.
  639.  *
  640.  *      GadTools style listview gadget.
  641.  */
  642. #define LISTV_ResourceHook              (BGUI_TB+721)   /* I---- */
  643. #define LISTV_DisplayHook               (BGUI_TB+722)   /* I---- */
  644. #define LISTV_CompareHook               (BGUI_TB+723)   /* I---- */
  645. #define LISTV_Top                       (BGUI_TB+724)   /* ISG-U */
  646. #define LISTV_ListFont                  (BGUI_TB+725)   /* I-G-- */
  647. #define LISTV_ReadOnly                  (BGUI_TB+726)   /* I---- */
  648. #define LISTV_MultiSelect               (BGUI_TB+727)   /* I---- */
  649. #define LISTV_EntryArray                (BGUI_TB+728)   /* I---- */
  650. #define LISTV_Select                    (BGUI_TB+729)   /* -S--U */
  651. #define LISTV_MakeVisible               (BGUI_TB+730)   /* -S--U */
  652. #define LISTV_Entry                     (BGUI_TB+731)   /* ---N- */
  653. #define LISTV_SortEntryArray            (BGUI_TB+732)   /* I---- */
  654. #define LISTV_EntryNumber               (BGUI_TB+733)   /* ---N- */
  655. #define LISTV_TitleHook                 (BGUI_TB+734)   /* I---- */
  656. #define LISTV_LastClicked               (BGUI_TB+735)   /* --G-- */
  657. #define LISTV_ThinFrames                (BGUI_TB+736)   /* I---- */
  658. #define LISTV_LastClickedNum            (BGUI_TB+737)   /* --G-- */  /* V38 */
  659. #define LISTV_NewPosition               (BGUI_TB+738)   /* ---N- */  /* V38 */
  660. #define LISTV_NumEntries                (BGUI_TB+739)   /* --G-- */  /* V38 */
  661. #define LISTV_MinEntriesShown           (BGUI_TB+740)   /* I---- */  /* V38 */
  662.  
  663. /* BGUI_TB+741 through BGUI_TB+800 reserved. */
  664.  
  665. /*
  666. **      LISTV_Select magic numbers.
  667. **/
  668. #define LISTV_Select_First              (-1L)                        /* V38 */
  669. #define LISTV_Select_Last               (-2L)                        /* V38 */
  670. #define LISTV_Select_Next               (-3L)                        /* V38 */
  671. #define LISTV_Select_Previous           (-4L)                        /* V38 */
  672. #define LISTV_Select_Top                (-5L)                        /* V38 */
  673. #define LISTV_Select_Page_Up            (-6L)                        /* V38 */
  674. #define LISTV_Select_Page_Down          (-7L)                        /* V38 */
  675.  
  676. /*
  677.  *      The LISTV_ResourceHook is called as follows:
  678.  *
  679.  *      rc = hookFunc( REG(A0) struct Hook              *hook,
  680.  *                     REG(A2) Object                   *lv_object,
  681.  *                     REG(A1) struct lvResource        *message );
  682.  */
  683. struct lvResource {
  684.         UWORD                   lvr_Command;
  685.         APTR                    lvr_Entry;
  686. };
  687.  
  688. /* LISTV_ResourceHook commands. */
  689. #define LVRC_MAKE               1       /* Build the entry. */
  690. #define LVRC_KILL               2       /* Kill the entry.  */
  691.  
  692. /*
  693.  *      The LISTV_DisplayHook and the LISTV_TitleHook are called as follows:
  694.  *
  695.  *      rc = hookFunc( REG(A0) struct Hook             *hook,
  696.  *                     REG(A2) Object                  *lv_object,
  697.  *                     REG(A1) struct lvRender         *message );
  698.  */
  699. struct lvRender {
  700.         struct RastPort        *lvr_RPort;      /* RastPort to render in.  */
  701.         struct DrawInfo        *lvr_DrawInfo;   /* All you need to render. */
  702.         struct Rectangle        lvr_Bounds;     /* Bounds to render in.    */
  703.         APTR                    lvr_Entry;      /* Entry to render.        */
  704.         UWORD                   lvr_State;      /* See below.              */
  705.         UWORD                   lvr_Flags;      /* None defined yet.       */
  706. };
  707.  
  708. /* Rendering states. */
  709. #define LVRS_NORMAL             0
  710. #define LVRS_SELECTED           1
  711. #define LVRS_NORMAL_DISABLED    2
  712. #define LVRS_SELECTED_DISABLED  3
  713.  
  714. /*
  715.  *      The LISTV_CompareHook is called as follows:
  716.  *
  717.  *      rc = hookFunc( REG(A0) struct Hook              *hook,
  718.  *                     REG(A2) Object                   *lv_object,
  719.  *                     REG(A1) struct lvCompare         *message );
  720.  */
  721. struct lvCompare {
  722.         APTR                    lvc_EntryA;     /* First entry.  */
  723.         APTR                    lvc_EntryB;     /* Second entry. */
  724. };
  725.  
  726. /* New Methods. */
  727. #define LVM_ADDENTRIES                  (BGUI_MB+281)
  728.  
  729. /* Add listview entries. */
  730. struct lvmAddEntries {
  731.         ULONG                   MethodID;       /* LVM_ADDENTRIES  */
  732.         struct GadgetInfo      *lvma_GInfo;     /* GadgetInfo      */
  733.         APTR                   *lvma_Entries;   /* Entries to add. */
  734.         ULONG                   lvma_How;       /* How to add it.  */
  735. };
  736.  
  737. /* Where to add the entries. */
  738. #define LVAP_HEAD               1
  739. #define LVAP_TAIL               2
  740. #define LVAP_SORTED             3
  741.  
  742. #define LVM_ADDSINGLE                   (BGUI_MB+282)
  743.  
  744. /* Add a single entry. */
  745. struct lvmAddSingle {
  746.         ULONG                   MethodID;       /* LVM_ADDSINGLE */
  747.         struct GadgetInfo      *lvma_GInfo;     /* GadgetInfo    */
  748.         APTR                    lvma_Entry;     /* Entry to add. */
  749.         ULONG                   lvma_How;       /* See above.    */
  750.         ULONG                   lvma_Flags;     /* See below.    */
  751. };
  752.  
  753. /* Flags. */
  754. #define LVASF_MAKEVISIBLE       (1<<0)  /* Make entry visible. */
  755. #define LVASF_SELECT            (1<<1)  /* Select entry.       */
  756.  
  757. /* Clear the entire list. ( Uses a lvmCommand structure as defined below.) */
  758. #define LVM_CLEAR                       (BGUI_MB+283)
  759.  
  760. #define LVM_FIRSTENTRY                  (BGUI_MB+284)
  761. #define LVM_LASTENTRY                   (BGUI_MB+285)
  762. #define LVM_NEXTENTRY                   (BGUI_MB+286)
  763. #define LVM_PREVENTRY                   (BGUI_MB+287)
  764.  
  765. /* Get an entry. */
  766. struct lvmGetEntry {
  767.         ULONG                   MethodID;       /* Any of the above. */
  768.         APTR                    lvmg_Previous;  /* Previous entry.   */
  769.         ULONG                   lvmg_Flags;     /* See below.        */
  770. };
  771.  
  772. #define LVGEF_SELECTED          (1<<0)  /* Get selected entries. */
  773.  
  774. #define LVM_REMENTRY                    (BGUI_MB+288)
  775.  
  776. /* Remove an entry. */
  777. struct lvmRemEntry {
  778.         ULONG                   MethodID;       /* LVM_REMENTRY      */
  779.         struct GadgetInfo      *lvmr_GInfo;     /* GadgetInfo        */
  780.         APTR                    lvmr_Entry;     /* Entry to remove.  */
  781. };
  782.  
  783. #define LVM_REFRESH                     (BGUI_MB+289)
  784. #define LVM_SORT                        (BGUI_MB+290)
  785. #define LVM_LOCKLIST                    (BGUI_MB+291)
  786. #define LVM_UNLOCKLIST                  (BGUI_MB+292)
  787.  
  788. /* Refresh/Sort list. */
  789. struct lvmCommand {
  790.         ULONG                   MethodID;       /* LVM_REFRESH       */
  791.         struct GadgetInfo      *lvmc_GInfo;     /* GadgetInfo        */
  792. };
  793.  
  794. #define LVM_MOVE                        (BGUI_MB+293) /* V38 */
  795.  
  796. /* Move an entry in the list. */
  797. struct lvmMove {
  798.         ULONG                   MethodID;       /* LVM_MOVE          */
  799.         struct GadgetInfo      *lvmm_GInfo;     /* GadgetInfo        */
  800.         APTR                    lvmm_Entry;     /* Entry to move     */
  801.         ULONG                   lvmm_Direction; /* See below         */
  802. };
  803.  
  804. /* Move directions. */
  805. #define LVMOVE_UP               0       /* Move entry up.            */
  806. #define LVMOVE_DOWN             1       /* Move entry down.          */
  807. #define LVMOVE_TOP              2       /* Move entry to the top.    */
  808. #define LVMOVE_BOTTOM           3       /* Move entry to the bottom. */
  809.  
  810. /* BGUI_MB+294 through BGUI_MB+320 reserved. */
  811.  
  812. /*****************************************************************************
  813.  *
  814.  *      "progressclass" - BOOPSI progression gadget.
  815.  *
  816.  *      Progression indicator fuel guage.
  817.  */
  818. #define PROGRESS_Min                    (BGUI_TB+801)   /* IS--- */
  819. #define PROGRESS_Max                    (BGUI_TB+802)   /* IS--- */
  820. #define PROGRESS_Done                   (BGUI_TB+803)   /* ISGNU */
  821. #define PROGRESS_Vertical               (BGUI_TB+804)   /* I---- */
  822. #define PROGRESS_Divisor                (BGUI_TB+805)   /* I---- */
  823.  
  824. /* BGUI_TB+806 through BGUI_TB+880 reserved. */
  825. /* BGUI_MB+321 through BGUI_MB+360 reserved. */
  826.  
  827. /*****************************************************************************
  828.  *
  829.  *      "propclass" - BOOPSI proportional gadget.
  830.  *
  831.  *      GadTools style scroller gadget.
  832.  */
  833. #define PGA_Arrows                      (BGUI_TB+881)   /* I---- */
  834. #define PGA_ArrowSize                   (BGUI_TB+882)   /* I---- */
  835. #define PGA_DontTarget                  (BGUI_TB+883)   /* PRIVATE! */
  836. #define PGA_ThinFrame                   (BGUI_TB+884)   /* I---- */
  837. #define PGA_XenFrame                    (BGUI_TB+885)   /* I---- */
  838.  
  839. /* BGUI_TB+886 through BGUI_TB+960 reserved. */
  840. /* BGUI_MB+361 through BGUI_MB+400 reserved. */
  841.  
  842. /*****************************************************************************
  843.  *
  844.  *      "stringclass" - BOOPSI string gadget.
  845.  *
  846.  *      GadTools style string/integer gadget.
  847.  */
  848. #define STRINGA_Tabbed                  (BGUI_TB+961)   /* PRIVATE! */
  849. #define STRINGA_ShiftTabbed             (BGUI_TB+962)   /* PRIVATE! */
  850.  
  851. /* BGUI_TB+963 through BGUI_TB+1040 reserved. */
  852. /* BGUI_MB+401 through BGUI_MB+440 reserved. */
  853.  
  854. /*****************************************************************************
  855.  *
  856.  *      RESERVED.
  857.  */
  858.  
  859. /* BGUI_TB+1041 through BGUI_TB+1120 reserved. */
  860. /* BGUI_MB+441 through BGUI_MB+480 reserved. */
  861.  
  862. /*****************************************************************************
  863.  *
  864.  *      "pageclass" - BOOPSI paging gadget.
  865.  *
  866.  *      Gadget to handle pages of gadgets.
  867.  */
  868. #define PAGE_Active                     (BGUI_TB+1121)  /* ISGNU */
  869. #define PAGE_Member                     (BGUI_TB+1122)  /* I---- */
  870. #define PAGE_NoBufferRP                 (BGUI_TB+1123)  /* I---- */
  871. #define PAGE_Inverted                   (BGUI_TB+1124)  /* I---- */
  872.  
  873. /* BGUI_TB+1125 through BGUI_TB+1200 reserved. */
  874. /* BGUI_MB+481 through BGUI_MB+520 reserved. */
  875.  
  876. /*****************************************************************************
  877.  *
  878.  *      "mxclass" - BOOPSI mx gadget.
  879.  *
  880.  *      GadTools style mx gadget.
  881.  */
  882. #define MX_Labels                       (BGUI_TB+1201)  /* I---- */
  883. #define MX_Active                       (BGUI_TB+1202)  /* ISGNU */
  884. #define MX_LabelPlace                   (BGUI_TB+1203)  /* I---- */
  885. #define MX_DisableButton                (BGUI_TB+1204)  /* IS--U */
  886. #define MX_EnableButton                 (BGUI_TB+1205)  /* IS--U */
  887. #define MX_TabsObject                   (BGUI_TB+1206)  /* I---- */
  888. #define MX_TabsTextAttr                 (BGUI_TB+1207)  /* I---- */
  889.  
  890. /* BGUI_TB+1208 through BGUI_TB+1280 reserved. */
  891. /* BGUI_MB+521 through BGUI_MB+560 reserved. */
  892.  
  893. /*****************************************************************************
  894.  *
  895.  *      "sliderclass" - BOOPSI slider gadget.
  896.  *
  897.  *      GadTools style slider gadget.
  898.  */
  899. #define SLIDER_Min                              (BGUI_TB+1281)  /* I---- */
  900. #define SLIDER_Max                              (BGUI_TB+1282)  /* I---- */
  901. #define SLIDER_Level                            (BGUI_TB+1283)  /* ISGNU */
  902. #define SLIDER_ThinFrame                        (BGUI_TB+1284)  /* I---- */
  903. #define SLIDER_XenFrame                         (BGUI_TB+1285)  /* I---- */
  904.  
  905. /* BGUI_TB+1286 through BGUI_TB+1360 reserved. */
  906. /* BGUI_MB+561 through BGUI_MB+600 reserved. */
  907.  
  908. /*****************************************************************************
  909.  *
  910.  *      "indicatorclass" - BOOPSI indicator gadget.
  911.  *
  912.  *      Textual level indicator gadget.
  913.  */
  914. #define INDIC_Min                       (BGUI_TB+1361)  /* I---- */
  915. #define INDIC_Max                       (BGUI_TB+1362)  /* I---- */
  916. #define INDIC_Level                     (BGUI_TB+1363)  /* IS--U */
  917. #define INDIC_FormatString              (BGUI_TB+1364)  /* I---- */
  918. #define INDIC_Justification             (BGUI_TB+1365)  /* I---- */
  919.  
  920. /* Justification */
  921. #define IDJ_LEFT                (0L)
  922. #define IDJ_CENTER              (1L)
  923. #define IDJ_RIGHT               (2L)
  924.  
  925. /* BGUI_TB+1366 through BGUI_TB+1440 reserved. */
  926.  
  927. /*****************************************************************************
  928.  *
  929.  *      "externalclass" - BGUI external class interface.
  930.  */
  931. #define EXT_Class                       (BGUI_TB+1441)  /* I---- */
  932. #define EXT_ClassID                     (BGUI_TB+1442)  /* I---- */
  933. #define EXT_MinWidth                    (BGUI_TB+1443)  /* I---- */
  934. #define EXT_MinHeight                   (BGUI_TB+1444)  /* I---- */
  935. #define EXT_TrackAttr                   (BGUI_TB+1445)  /* I---- */
  936. #define EXT_Object                      (BGUI_TB+1446)  /* --G-- */
  937. #define EXT_NoRebuild                   (BGUI_TB+1447)  /* I---- */
  938.  
  939. /* BGUI_TB+1448 through BGUI_TB+1500 reserved. */
  940.  
  941. /*****************************************************************************
  942.  *
  943.  *      "seperatorclass" - BOOPSI seperator class.
  944.  */
  945. #define SEP_Horiz                       (BGUI_TB+1501)  /* I---- */
  946. #define SEP_Title                       (BGUI_TB+1502)  /* I---- */
  947. #define SEP_Thin                        (BGUI_TB+1503)  /* I---- */
  948. #define SEP_Highlight                   (BGUI_TB+1504)  /* I---- */
  949. #define SEP_CenterTitle                 (BGUI_TB+1505)  /* I---- */
  950.  
  951. /* BGUI_TB+1506 through BGUI_TB+1760 reserved. */
  952.  
  953. /*****************************************************************************
  954.  *
  955.  *      "windowclass" - BOOPSI window class.
  956.  *
  957.  *      This class creates and maintains an intuition window.
  958.  */
  959. #define WINDOW_Position                 (BGUI_TB+1761)  /* I---- */
  960. #define WINDOW_ScaleWidth               (BGUI_TB+1762)  /* I---- */
  961. #define WINDOW_ScaleHeight              (BGUI_TB+1763)  /* I---- */
  962. #define WINDOW_LockWidth                (BGUI_TB+1764)  /* I---- */
  963. #define WINDOW_LockHeight               (BGUI_TB+1765)  /* I---- */
  964. #define WINDOW_PosRelBox                (BGUI_TB+1766)  /* I---- */
  965. #define WINDOW_Bounds                   (BGUI_TB+1767)  /* ISG-- */
  966. /* BGUI_TB+1768 through BGUI_TB+1670 reserved. */
  967. #define WINDOW_DragBar                  (BGUI_TB+1771)  /* I---- */
  968. #define WINDOW_SizeGadget               (BGUI_TB+1772)  /* I---- */
  969. #define WINDOW_CloseGadget              (BGUI_TB+1773)  /* I---- */
  970. #define WINDOW_DepthGadget              (BGUI_TB+1774)  /* I---- */
  971. #define WINDOW_SizeBottom               (BGUI_TB+1775)  /* I---- */
  972. #define WINDOW_SizeRight                (BGUI_TB+1776)  /* I---- */
  973. #define WINDOW_Activate                 (BGUI_TB+1777)  /* I---- */
  974. #define WINDOW_RMBTrap                  (BGUI_TB+1778)  /* I---- */
  975. #define WINDOW_SmartRefresh             (BGUI_TB+1779)  /* I---- */
  976. #define WINDOW_ReportMouse              (BGUI_TB+1780)  /* I---- */
  977. /* BGUI_TB+1781 through BGUI_TB+1790 reserved. */
  978. #define WINDOW_IDCMP                    (BGUI_TB+1791)  /* I---- */
  979. #define WINDOW_SharedPort               (BGUI_TB+1792)  /* I---- */
  980. #define WINDOW_Title                    (BGUI_TB+1793)  /* IS--U */
  981. #define WINDOW_ScreenTitle              (BGUI_TB+1794)  /* IS--U */
  982. #define WINDOW_MenuStrip                (BGUI_TB+1795)  /* I-G-- */
  983. #define WINDOW_MasterGroup              (BGUI_TB+1796)  /* I---- */
  984. #define WINDOW_Screen                   (BGUI_TB+1797)  /* IS--- */
  985. #define WINDOW_PubScreenName            (BGUI_TB+1798)  /* IS--- */
  986. #define WINDOW_UserPort                 (BGUI_TB+1799)  /* --G-- */
  987. #define WINDOW_SigMask                  (BGUI_TB+1800)  /* --G-- */
  988. #define WINDOW_IDCMPHook                (BGUI_TB+1801)  /* I---- */
  989. #define WINDOW_VerifyHook               (BGUI_TB+1802)  /* I---- */
  990. #define WINDOW_IDCMPHookBits            (BGUI_TB+1803)  /* I---- */
  991. #define WINDOW_VerifyHookBits           (BGUI_TB+1804)  /* I---- */
  992. #define WINDOW_Font                     (BGUI_TB+1805)  /* I---- */
  993. #define WINDOW_FallBackFont             (BGUI_TB+1806)  /* I---- */
  994. #define WINDOW_HelpFile                 (BGUI_TB+1807)  /* IS--- */
  995. #define WINDOW_HelpNode                 (BGUI_TB+1808)  /* IS--- */
  996. #define WINDOW_HelpLine                 (BGUI_TB+1809)  /* IS--- */
  997. #define WINDOW_AppWindow                (BGUI_TB+1810)  /* I---- */
  998. #define WINDOW_AppMask                  (BGUI_TB+1811)  /* --G-- */
  999. #define WINDOW_UniqueID                 (BGUI_TB+1812)  /* I---- */
  1000. #define WINDOW_Window                   (BGUI_TB+1813)  /* --G-- */
  1001. #define WINDOW_HelpText                 (BGUI_TB+1814)  /* IS--- */
  1002. #define WINDOW_NoBufferRP               (BGUI_TB+1815)  /* I---- */
  1003. #define WINDOW_AutoAspect               (BGUI_TB+1816)  /* I---- */
  1004.  
  1005. /* BGUI_TB+1817 through BGUI_TB+1860 reserved. */
  1006.  
  1007. /* Possible window positions. */
  1008. #define POS_CENTERSCREEN        (0L)    /* Center on the screen             */
  1009. #define POS_CENTERMOUSE         (1L)    /* Center under the mouse           */
  1010. #define POS_TOPLEFT             (2L)    /* Top-left of the screen           */
  1011.  
  1012. /* New methods */
  1013.  
  1014. #define WM_OPEN         (BGUI_MB+601)   /* Open the window                  */
  1015. #define WM_CLOSE        (BGUI_MB+602)   /* Close the window                 */
  1016. #define WM_SLEEP        (BGUI_MB+603)   /* Put the window to sleep          */
  1017. #define WM_WAKEUP       (BGUI_MB+604)   /* Wake the window up               */
  1018. #define WM_HANDLEIDCMP  (BGUI_MB+605)   /* Call the IDCMP handler           */
  1019.  
  1020. /* Pre-defined WM_HANDLEIDCMP return codes. */
  1021. #define WMHI_CLOSEWINDOW        (1<<16) /* The close gadget was clicked     */
  1022. #define WMHI_NOMORE             (2<<16) /* No more messages                 */
  1023. #define WMHI_INACTIVE           (3<<16) /* The window was de-activated      */
  1024. #define WMHI_ACTIVE             (4<<16) /* The window was activated         */
  1025. #define WMHI_IGNORE             (~0L)   /* Like it say's: ignore            */
  1026.  
  1027. #define WM_GADGETKEY                    (BGUI_MB+606)
  1028.  
  1029. /* Add a hotkey to a gadget. */
  1030. struct wmGadgetKey {
  1031.         ULONG              MethodID;       /* WM_GADGETKEY                  */
  1032.         struct Requester  *wmgk_Requester; /* When used in a requester      */
  1033.         Object            *wmgk_Object;    /* Object to activate            */
  1034.         STRPTR             wmgk_Key;       /* Key that triggers activ.      */
  1035. };
  1036.  
  1037. #define WM_KEYACTIVE                    (BGUI_MB+607)
  1038. #define WM_KEYINPUT                     (BGUI_MB+608)
  1039.  
  1040. /* Send with the WM_KEYACTIVE and WM_KEYINPUT methods. */
  1041. struct wmKeyInput {
  1042.         ULONG              MethodID;     /* WM_KEYACTIVE/WM_KEYINPUT        */
  1043.         struct GadgetInfo *wmki_GInfo;   /* GadgetInfo                      */
  1044.         struct InputEvent *wmki_IEvent;  /* Input event                     */
  1045.         ULONG             *wmki_ID;      /* Storage for the object ID       */
  1046.         STRPTR             wmki_Key;     /* Key that triggered activation.  */
  1047. };
  1048.  
  1049. /* Possible WM_KEYACTIVE and WM_KEYINPUT return codes. */
  1050. #define WMKF_MEACTIVE           (0L)     /* Object went active.             */
  1051. #define WMKF_CANCEL             (1<<0)   /* Key activation canceled.        */
  1052. #define WMKF_VERIFY             (1<<1)   /* Key activation confirmed        */
  1053. #define WMKF_ACTIVATE           (1<<2)   /* ActivateGadget() object         */
  1054.  
  1055. #define WM_KEYINACTIVE                  (BGUI_MB+609)
  1056.  
  1057. /* De-activate a key session. */
  1058. struct wmKeyInActive {
  1059.         ULONG              MethodID;    /* WM_KEYINACTIVE                   */
  1060.         struct GadgetInfo *wmkia_GInfo; /* GadgetInfo                       */
  1061. };
  1062.  
  1063. #define WM_DISABLEMENU                  (BGUI_MB+610)
  1064. #define WM_CHECKITEM                    (BGUI_MB+611)
  1065.  
  1066. /* Disable/Enable a menu or Set/Clear a checkit item. */
  1067. struct wmMenuAction {
  1068.         ULONG              MethodID;    /* WM_DISABLEMENU/WM_CHECKITEM      */
  1069.         ULONG              wmma_MenuID; /* Menu it's ID                     */
  1070.         ULONG              wmma_Set;    /* TRUE = set, FALSE = clear        */
  1071. };
  1072.  
  1073. #define WM_MENUDISABLED                 (BGUI_MB+612)
  1074. #define WM_ITEMCHECKED                  (BGUI_MB+613)
  1075.  
  1076. struct wmMenuQuery {
  1077.         ULONG              MethodID;    /* WM_MENUDISABLED/WM_ITEMCHECKED   */
  1078.         ULONG              wmmq_MenuID; /* Menu it's ID                     */
  1079. };
  1080.  
  1081. #define WM_TABCYCLE_ORDER               (BGUI_MB+614)
  1082.  
  1083. /* Set the tab-cycling order. */
  1084. struct wmTabCycleOrder {
  1085.         ULONG              MethodID;    /* WM_TABCYCLE_ORDER                */
  1086.         Object            *wtco_Object1;
  1087.         /* Object         *wtco_Object2; */
  1088.         /* ...  */
  1089.         /* NULL */
  1090. };
  1091.  
  1092. /* Obtain the app message. */
  1093. #define WM_GETAPPMSG                    (BGUI_MB+615)
  1094.  
  1095. #define WM_ADDUPDATE                    (BGUI_MB+616)
  1096.  
  1097. /* Add object to the update notification list. */
  1098. struct wmAddUpdate {
  1099.         ULONG              MethodID;            /* WM_ADDUPDATE             */
  1100.         ULONG              wmau_SourceID;       /* ID of source object.     */
  1101.         Object            *wmau_Target;         /* Target object.           */
  1102.         struct TagItem    *wmau_MapList;        /* Attribute map-list.      */
  1103. };
  1104.  
  1105. #define WM_REPORT_ID                    (BGUI_MB+617) /* V38 */
  1106.  
  1107. /* Report a return code from a IDCMP/Verify hook. */
  1108. struct wmReportID {
  1109.         ULONG              MethodID;            /* WM_REPORT_ID             */
  1110.         ULONG              wmri_ID;             /* ID to report.            */
  1111.         ULONG              wmri_Flags;          /* See below.               */
  1112. };
  1113.  
  1114. /* Flags */
  1115. #define WMRIF_DOUBLE_CLICK      (1<<0)          /* Simulate double-click.   */
  1116.  
  1117. /* BGUI_MB+618 through BGUI_MB+660 reserved. */
  1118.  
  1119. /*****************************************************************************
  1120.  *
  1121.  *      "commodityclass" - BOOPSI commodity class.
  1122.  */
  1123. #define COMM_Name                       (BGUI_TB+1861)  /* I---- */
  1124. #define COMM_Title                      (BGUI_TB+1862)  /* I---- */
  1125. #define COMM_Description                (BGUI_TB+1863)  /* I---- */
  1126. #define COMM_Unique                     (BGUI_TB+1864)  /* I---- */
  1127. #define COMM_Notify                     (BGUI_TB+1865)  /* I---- */
  1128. #define COMM_ShowHide                   (BGUI_TB+1866)  /* I---- */
  1129. #define COMM_Priority                   (BGUI_TB+1867)  /* I---- */
  1130. #define COMM_SigMask                    (BGUI_TB+1868)  /* --G-- */
  1131. #define COMM_ErrorCode                  (BGUI_TB+1869)  /* --G-- */
  1132.  
  1133. /* BGUI_TB+1870 through BGUI_TB+1940 reserved. */
  1134.  
  1135. /* New Methods. */
  1136.  
  1137. #define CM_ADDHOTKEY                    (BGUI_MB+661)
  1138.  
  1139. /* Add a hot-key to the broker. */
  1140. struct cmAddHotkey {
  1141.         ULONG           MethodID;               /* CM_ADDHOTKEY             */
  1142.         STRPTR          cah_InputDescription;   /* Key input description.   */
  1143.         ULONG           cah_KeyID;              /* Key command ID.          */
  1144.         ULONG           cah_Flags;              /* See below.               */
  1145. };
  1146.  
  1147. /* Flags. */
  1148. #define CAHF_DISABLED   (1<<0)  /* The key is added but won't work.         */
  1149.  
  1150. #define CM_REMHOTKEY                    (BGUI_MB+662) /* Remove a key.      */
  1151. #define CM_DISABLEHOTKEY                (BGUI_MB+663) /* Disable a key.     */
  1152. #define CM_ENABLEHOTKEY                 (BGUI_MB+664) /* Enable a key.      */
  1153.  
  1154. /* Do a key command. */
  1155. struct cmDoKeyCommand {
  1156.         ULONG           MethodID;       /* See above.                       */
  1157.         ULONG           cdkc_KeyID;     /* ID of the key.                   */
  1158. };
  1159.  
  1160. #define CM_ENABLEBROKER                 (BGUI_MB+665) /* Enable broker.     */
  1161. #define CM_DISABLEBROKER                (BGUI_MB+666) /* Disable broker.    */
  1162.  
  1163. #define CM_MSGINFO                      (BGUI_MB+667)
  1164.  
  1165. /* Obtain info from a CxMsg. */
  1166. struct cmMsgInfo {
  1167.         ULONG           MethodID;       /* CM_MSGINFO                       */
  1168.         struct {
  1169.                 ULONG  *Type;           /* Storage for CxMsgType() result.  */
  1170.                 ULONG  *ID;             /* Storage for CxMsgID() result.    */
  1171.                 ULONG  *Data;           /* Storage for CxMsgData() result.  */
  1172.         }               cmi_Info;
  1173. };
  1174.  
  1175. /* Possible CM_MSGINFO return codes. */
  1176. #define CMMI_NOMORE             (~0L)   /* No more messages.                */
  1177.  
  1178. /* BGUI_MB+668 through BGUI_MB+700 reserved. */
  1179.  
  1180. /*
  1181.  *      CM_ADDHOTKEY error codes obtainable using
  1182.  *      the COMM_ErrorCode attribute.
  1183.  */
  1184. #define CMERR_OK                (0L)    /* OK. No problems.                 */
  1185. #define CMERR_NO_MEMORY         (1L)    /* Out of memory.                   */
  1186. #define CMERR_KEYID_IN_USE      (2L)    /* Key ID already used.             */
  1187. #define CMERR_KEY_CREATION      (3L)    /* Key creation failure.            */
  1188. #define CMERR_CXOBJERROR        (4L)    /* CxObjError() reported failure.   */
  1189.  
  1190. /*****************************************************************************
  1191.  *
  1192.  *      "filereqclass.c" - BOOPSI Asl filerequester class.
  1193.  */
  1194. #define FRQ_Drawer                      (BGUI_TB+1941)  /* --G-- */
  1195. #define FRQ_File                        (BGUI_TB+1942)  /* --G-- */
  1196. #define FRQ_Pattern                     (BGUI_TB+1943)  /* --G-- */
  1197. #define FRQ_Path                        (BGUI_TB+1944)  /* --G-- */
  1198. #define FRQ_Left                        (BGUI_TB+1945)  /* --G-- */
  1199. #define FRQ_Top                         (BGUI_TB+1946)  /* --G-- */
  1200. #define FRQ_Width                       (BGUI_TB+1947)  /* --G-- */
  1201. #define FRQ_Height                      (BGUI_TB+1948)  /* --G-- */
  1202. /*
  1203.  *      In addition to the above defined attributes are all
  1204.  *      ASL filerequester attributes ISG-U.
  1205.  */
  1206.  
  1207. /* BGUI_TB+1949 through BGUI_TB+2020 reserved. */
  1208.  
  1209. /*
  1210.  *      Error codes which the SetAttrs() and DoMethod()
  1211.  *      call's can return.
  1212.  */
  1213. #define FRQ_OK                  (0L)    /* OK. No problems.                 */
  1214. #define FRQ_CANCEL              (1L)    /* The requester was cancelled.     */
  1215. #define FRQ_ERROR_NO_MEM        (2L)    /* Out of memory.                   */
  1216. #define FRQ_ERROR_NO_FREQ       (3L)    /* Unable to allocate a requester.  */
  1217.  
  1218. /* New Methods */
  1219.  
  1220. #define FRM_DOREQUEST                   (BGUI_MB+701)   /* Show Requester.  */
  1221.  
  1222. /* BGUI_MB+702 through BGUI_MB+740 reserved. */
  1223.  
  1224. #endif /* LIBRARIES_BGUI_H */
  1225.